<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/admin.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/self.css">
    <script src="__PUBLIC__/style/jsn/jquery.js"></script>
    <script src="__PUBLIC__/style/jsn/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 管理员信息</strong></div>
    <div class="body-content">
    <form method="post" name="form11" class="form-x" action="{:U('Admin/User/update')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="big_div">
            <div class="dates">用户名：</div>
            <div class="big_input">
                <input class="input" type="text" name="name" value="{$data['name']}" />
            </div>
            <div class="big_center"></div>
            
        </div>
        <div class="big_div">
            <div class="dates">状态：</div>
            <div class="big_input">
                <select name="status" class="input" style="width:280px; line-height:17px;">
                    <option value="1" <if condition="strtoupper($data['status']) eq '1'">selected</if>>启用</option>
                    <option value="0" <if condition="strtoupper($data['status']) eq '0'">selected</if>>禁用</option>
                </select>
            </div>
            <div class="big_center"></div>
            
        </div>

        <div class="big_div">
            <div class="dates">管理员等级：</div>
            <div class="big_input">
                <select name="rank" class="input" style="width:280px; line-height:17px;">
                    <option value="1" <if condition="strtoupper($data['rank']) eq '1'">selected</if>>一级管理员</option>
                    <option value="2" <if condition="strtoupper($data['rank']) eq '2'">selected</if>>二级管理员</option>
                </select>
            </div>
            <div class="big_center"></div>
            
        </div>
        
        <div class="form-group">
            <div class="label">
              <label></label>
            </div>
            <div class="field">
              <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
            </div>
        </div>

    </form>
  </div>
</div>
</body>

</html>

<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/messages_zh.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validation.css">
<script type="text/javascript">
$("form[name=form11]").validate({
    rules:{
        name:{
            required:true,
            rangelength:[5,16],
        },
        pass:{
            required:true,
            rangelength:[8,16],
        },
        repass:{
            required:true,
            equalTo:".pass",
        }
        
    },
    messages:{
        name:{
            required:"请填写管理员用户名",
            rangelength:"请输入5-16位的管理员用户名",
        },
        pass:{
            required:"请填写密码",
            rangelength:"密码为8-16位数字字母下划线",
        },
        repass:{
            required: "请填写确认密码",
            equalTo:"确认密码与密码不一致",
        }
    }
});
</script>